package com.study.service.impl;

import com.study.dao.CountryInfoDAO;
import com.study.dao.impl.CountryInfoDAOImpl;
import com.study.dto.MedalSearchDto;
import com.study.dto.PageDto;
import com.study.pojo.CountryInfo;
import com.study.service.CountryService;

import java.util.List;

/**
 * @PackgeName: com.study.service.impl
 * @ClassName: CountryServletImpl
 * @Author: 严志祥
 * Date: 2022-05-16 14:20
 * project name: web_project_medal
 * @Version:
 * @Description:
 */
public class CountryServletImpl implements CountryService {
private CountryInfoDAO dao = new CountryInfoDAOImpl();
    @Override
    public List<CountryInfo> list(MedalSearchDto medalSearchDto) {
        try{
            return dao.select(0,999);
        }catch (Exception e){
            throw new RuntimeException("获取奖牌列表失败",e);
        }
    }

    @Override
    public PageDto<CountryInfo> page(MedalSearchDto medalSearchDto) {
        return null;
    }
}
